import request from '@/utils/request'

export default {
  //原料管理
  rawmanList(data) {
    return request({
      url: '/ingredient/page',
      method: 'post',
      data
    })
  },
  addRawman(data) {
    return request({
      url: '/ingredient/add',
      method: 'post',
      data
    })
  },
  editRawman(data) {
    return request({
      url: `/ingredient/update/${data.id}`,
      method: 'post',
      data
    })
  },
  delRawman(id) {
    return request({
      url: `/ingredient/remove/${id}`,
      method: 'delete',
    })
  },
  rawmanDetail(id){
    return request({
        url: `/ingredient/info/${id}`,
        method: 'get',
      })
  
  },




}
